<?php
    $server = "localhost"; //服务器名称
    $uid = "sa"; //数据库用户名
    $pwd = "Zly211288"; //数据库密码
    $db = "blog2"; // 数据库名
    $connectionInfo=array("UID"=>$uid,"PWD"=>$pwd,"Database"=>$db);
    $conn =sqlsrv_connect($server,$connectionInfo);
    if( $conn == false) {
    echo "连接失败！";
    die( var_dump( sqlsrv_errors(), true));
    }else{
    echo "成功连接";
    phpinfo();
    
    // Laravel中MSSQL的使用
    // https://learnku.com/docs/laravel/8.5/eloquent/10403#1c2761

    // Microsoft Drivers for PHP for SQL Server
    // https://github.com/Microsoft/msphpsql

    // [Microsoft][ODBC Driver 17 for SQL Server]TCP 提供程序: 由于目标计算机积极拒
    // https://jingyan.baidu.com/article/9113f81b6e1ccc2b3214c78b.html

}